import request from '@/api/request.js'

//注册
export function register(data) {
    return request.post('/auth/register', data)
}

//登录
export function login(data) {
    return request.post('/auth/login', data)
}

//获取用户信息
export function getUserInfo() {
    return request.get('/auth/user-info')
}
